<?php
/**
 * @Author: gan
 * @Description:
 * @File:  EtcdFactory
 * @Version: 1.0.0
 * @Date: 2022/5/24 7:24 下午
 */
declare(strict_types=1);

namespace RX\Component\Etcd;

class EtcdFactory
{
    protected array $config;

    public function __construct(array $config = [])
    {
        $this->config = $config;
    }

    public function createClient(): Client
    {
        return new Client($this->config);
    }
}
